Data Management APIs
- Allocation
- Activity Log
- Audience
- Audience Attribute
- Audience Segment
- Auth and User
- POSTRequest password reset
- POSTGoogle sign-in authentication.
- POSTLogin using JWT authentication.
- POSTLogout using JWT authentication.
- POSTRegister a new user
- POSTRequest a verification token
- POSTReset password
- POSTVerify the user token
- POSTUpsert a privacy consent
- GETGet a privacy consent
- PATCHUpdate user budget
- PATCHUpdate user data
- GETGet all users
- DELDelete a user
- GETGet the current user
- POST
- Campaign
- Catalog
- Creative
- Analytic
- Billing
- System
- License
- Media Library
- Placement Catalog
- Placement
Decision APIs
- Cache Management
- Configuration
- Ad Serving
- Ad Log
- Activity Log
Auth and User
Update user data
Update the user’s data.
Available to administrators and the user themselves.
PATCH
/
user
/
info
curl --request PATCH \
--url https://your_a2_service/user/info \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"budget": 123,
"campaign_count": 1,
"creative_count": 1,
"credit": 123,
"email": "jsmith@example.com",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_active": true,
"is_superuser": true,
"is_verified": true,
"name": "<string>",
"password": "<string>",
"permissions": {},
"placement_count": 1,
"preferences": {
"etc": {
"language": "ko"
},
"notification_methods": {
"email": true,
"slack": false,
"sms": false
},
"notification_methods_data": {
"slack": "<SLACK_WEBHOOK_URL>",
"sms": ""
},
"notifications": {
"attribute_deleted": true,
"campaign_finished": true,
"publish_approval": true,
"publish_request": true
}
}
}'
{
"budget": 123,
"campaign_count": 1,
"creative_count": 1,
"credit": 123,
"email": "jsmith@example.com",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_active": true,
"is_superuser": true,
"is_verified": true,
"name": "<string>",
"permissions": {},
"placement_count": 1,
"preferences": {
"etc": {
"language": "ko"
},
"notification_methods": {
"email": true,
"slack": false,
"sms": false
},
"notification_methods_data": {
"slack": "<SLACK_WEBHOOK_URL>",
"sms": ""
},
"notifications": {
"attribute_deleted": true,
"campaign_finished": true,
"publish_approval": true,
"publish_request": true
}
},
"role": "advertiser"
}
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
application/json
Represents an update command for a user.
Response
200
application/json
Successful Response
Represents a read command for a user.
curl --request PATCH \
--url https://your_a2_service/user/info \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"budget": 123,
"campaign_count": 1,
"creative_count": 1,
"credit": 123,
"email": "jsmith@example.com",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_active": true,
"is_superuser": true,
"is_verified": true,
"name": "<string>",
"password": "<string>",
"permissions": {},
"placement_count": 1,
"preferences": {
"etc": {
"language": "ko"
},
"notification_methods": {
"email": true,
"slack": false,
"sms": false
},
"notification_methods_data": {
"slack": "<SLACK_WEBHOOK_URL>",
"sms": ""
},
"notifications": {
"attribute_deleted": true,
"campaign_finished": true,
"publish_approval": true,
"publish_request": true
}
}
}'
{
"budget": 123,
"campaign_count": 1,
"creative_count": 1,
"credit": 123,
"email": "jsmith@example.com",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_active": true,
"is_superuser": true,
"is_verified": true,
"name": "<string>",
"permissions": {},
"placement_count": 1,
"preferences": {
"etc": {
"language": "ko"
},
"notification_methods": {
"email": true,
"slack": false,
"sms": false
},
"notification_methods_data": {
"slack": "<SLACK_WEBHOOK_URL>",
"sms": ""
},
"notifications": {
"attribute_deleted": true,
"campaign_finished": true,
"publish_approval": true,
"publish_request": true
}
},
"role": "advertiser"
}
Assistant
Responses are generated using AI and may contain mistakes.